/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package fr.smile.liferay.portlet.news.service.base;

import com.liferay.counter.service.CounterLocalService;

import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.service.ResourceLocalService;
import com.liferay.portal.service.ResourceService;
import com.liferay.portal.service.UserLocalService;
import com.liferay.portal.service.UserService;
import com.liferay.portal.service.base.PrincipalBean;
import com.liferay.portal.service.persistence.ResourcePersistence;
import com.liferay.portal.service.persistence.UserPersistence;

import fr.smile.liferay.portlet.news.service.NewsEntryLocalService;
import fr.smile.liferay.portlet.news.service.NewsEntryService;
import fr.smile.liferay.portlet.news.service.NewsFlagLocalService;
import fr.smile.liferay.portlet.news.service.NewsFlagService;
import fr.smile.liferay.portlet.news.service.persistence.NewsEntryFinder;
import fr.smile.liferay.portlet.news.service.persistence.NewsEntryPersistence;
import fr.smile.liferay.portlet.news.service.persistence.NewsFlagPersistence;

import javax.sql.DataSource;

/**
 * The base implementation of the news flag remote service.
 *
 * <p>
 * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link fr.smile.liferay.portlet.news.service.impl.NewsFlagServiceImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this class directly. Always use {@link fr.smile.liferay.portlet.news.service.NewsFlagServiceUtil} to access the news flag remote service.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see fr.smile.liferay.portlet.news.service.impl.NewsFlagServiceImpl
 * @see fr.smile.liferay.portlet.news.service.NewsFlagServiceUtil
 * @generated
 */
public abstract class NewsFlagServiceBaseImpl extends PrincipalBean
	implements NewsFlagService {
	/**
	 * Gets the news entry local service.
	 *
	 * @return the news entry local service
	 */
	public NewsEntryLocalService getNewsEntryLocalService() {
		return newsEntryLocalService;
	}

	/**
	 * Sets the news entry local service.
	 *
	 * @param newsEntryLocalService the news entry local service
	 */
	public void setNewsEntryLocalService(
		NewsEntryLocalService newsEntryLocalService) {
		this.newsEntryLocalService = newsEntryLocalService;
	}

	/**
	 * Gets the news entry remote service.
	 *
	 * @return the news entry remote service
	 */
	public NewsEntryService getNewsEntryService() {
		return newsEntryService;
	}

	/**
	 * Sets the news entry remote service.
	 *
	 * @param newsEntryService the news entry remote service
	 */
	public void setNewsEntryService(NewsEntryService newsEntryService) {
		this.newsEntryService = newsEntryService;
	}

	/**
	 * Gets the news entry persistence.
	 *
	 * @return the news entry persistence
	 */
	public NewsEntryPersistence getNewsEntryPersistence() {
		return newsEntryPersistence;
	}

	/**
	 * Sets the news entry persistence.
	 *
	 * @param newsEntryPersistence the news entry persistence
	 */
	public void setNewsEntryPersistence(
		NewsEntryPersistence newsEntryPersistence) {
		this.newsEntryPersistence = newsEntryPersistence;
	}

	/**
	 * Gets the news entry finder.
	 *
	 * @return the news entry finder
	 */
	public NewsEntryFinder getNewsEntryFinder() {
		return newsEntryFinder;
	}

	/**
	 * Sets the news entry finder.
	 *
	 * @param newsEntryFinder the news entry finder
	 */
	public void setNewsEntryFinder(NewsEntryFinder newsEntryFinder) {
		this.newsEntryFinder = newsEntryFinder;
	}

	/**
	 * Gets the news flag local service.
	 *
	 * @return the news flag local service
	 */
	public NewsFlagLocalService getNewsFlagLocalService() {
		return newsFlagLocalService;
	}

	/**
	 * Sets the news flag local service.
	 *
	 * @param newsFlagLocalService the news flag local service
	 */
	public void setNewsFlagLocalService(
		NewsFlagLocalService newsFlagLocalService) {
		this.newsFlagLocalService = newsFlagLocalService;
	}

	/**
	 * Gets the news flag remote service.
	 *
	 * @return the news flag remote service
	 */
	public NewsFlagService getNewsFlagService() {
		return newsFlagService;
	}

	/**
	 * Sets the news flag remote service.
	 *
	 * @param newsFlagService the news flag remote service
	 */
	public void setNewsFlagService(NewsFlagService newsFlagService) {
		this.newsFlagService = newsFlagService;
	}

	/**
	 * Gets the news flag persistence.
	 *
	 * @return the news flag persistence
	 */
	public NewsFlagPersistence getNewsFlagPersistence() {
		return newsFlagPersistence;
	}

	/**
	 * Sets the news flag persistence.
	 *
	 * @param newsFlagPersistence the news flag persistence
	 */
	public void setNewsFlagPersistence(NewsFlagPersistence newsFlagPersistence) {
		this.newsFlagPersistence = newsFlagPersistence;
	}

	/**
	 * Gets the counter local service.
	 *
	 * @return the counter local service
	 */
	public CounterLocalService getCounterLocalService() {
		return counterLocalService;
	}

	/**
	 * Sets the counter local service.
	 *
	 * @param counterLocalService the counter local service
	 */
	public void setCounterLocalService(CounterLocalService counterLocalService) {
		this.counterLocalService = counterLocalService;
	}

	/**
	 * Gets the resource local service.
	 *
	 * @return the resource local service
	 */
	public ResourceLocalService getResourceLocalService() {
		return resourceLocalService;
	}

	/**
	 * Sets the resource local service.
	 *
	 * @param resourceLocalService the resource local service
	 */
	public void setResourceLocalService(
		ResourceLocalService resourceLocalService) {
		this.resourceLocalService = resourceLocalService;
	}

	/**
	 * Gets the resource remote service.
	 *
	 * @return the resource remote service
	 */
	public ResourceService getResourceService() {
		return resourceService;
	}

	/**
	 * Sets the resource remote service.
	 *
	 * @param resourceService the resource remote service
	 */
	public void setResourceService(ResourceService resourceService) {
		this.resourceService = resourceService;
	}

	/**
	 * Gets the resource persistence.
	 *
	 * @return the resource persistence
	 */
	public ResourcePersistence getResourcePersistence() {
		return resourcePersistence;
	}

	/**
	 * Sets the resource persistence.
	 *
	 * @param resourcePersistence the resource persistence
	 */
	public void setResourcePersistence(ResourcePersistence resourcePersistence) {
		this.resourcePersistence = resourcePersistence;
	}

	/**
	 * Gets the user local service.
	 *
	 * @return the user local service
	 */
	public UserLocalService getUserLocalService() {
		return userLocalService;
	}

	/**
	 * Sets the user local service.
	 *
	 * @param userLocalService the user local service
	 */
	public void setUserLocalService(UserLocalService userLocalService) {
		this.userLocalService = userLocalService;
	}

	/**
	 * Gets the user remote service.
	 *
	 * @return the user remote service
	 */
	public UserService getUserService() {
		return userService;
	}

	/**
	 * Sets the user remote service.
	 *
	 * @param userService the user remote service
	 */
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	/**
	 * Gets the user persistence.
	 *
	 * @return the user persistence
	 */
	public UserPersistence getUserPersistence() {
		return userPersistence;
	}

	/**
	 * Sets the user persistence.
	 *
	 * @param userPersistence the user persistence
	 */
	public void setUserPersistence(UserPersistence userPersistence) {
		this.userPersistence = userPersistence;
	}

	/**
	 * Performs an SQL query.
	 *
	 * @param sql the sql query to perform
	 */
	protected void runSQL(String sql) throws SystemException {
		try {
			DataSource dataSource = newsFlagPersistence.getDataSource();

			SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
					sql, new int[0]);

			sqlUpdate.update();
		}
		catch (Exception e) {
			throw new SystemException(e);
		}
	}

	@BeanReference(type = NewsEntryLocalService.class)
	protected NewsEntryLocalService newsEntryLocalService;
	@BeanReference(type = NewsEntryService.class)
	protected NewsEntryService newsEntryService;
	@BeanReference(type = NewsEntryPersistence.class)
	protected NewsEntryPersistence newsEntryPersistence;
	@BeanReference(type = NewsEntryFinder.class)
	protected NewsEntryFinder newsEntryFinder;
	@BeanReference(type = NewsFlagLocalService.class)
	protected NewsFlagLocalService newsFlagLocalService;
	@BeanReference(type = NewsFlagService.class)
	protected NewsFlagService newsFlagService;
	@BeanReference(type = NewsFlagPersistence.class)
	protected NewsFlagPersistence newsFlagPersistence;
	@BeanReference(type = CounterLocalService.class)
	protected CounterLocalService counterLocalService;
	@BeanReference(type = ResourceLocalService.class)
	protected ResourceLocalService resourceLocalService;
	@BeanReference(type = ResourceService.class)
	protected ResourceService resourceService;
	@BeanReference(type = ResourcePersistence.class)
	protected ResourcePersistence resourcePersistence;
	@BeanReference(type = UserLocalService.class)
	protected UserLocalService userLocalService;
	@BeanReference(type = UserService.class)
	protected UserService userService;
	@BeanReference(type = UserPersistence.class)
	protected UserPersistence userPersistence;
}